package com.sneaker.shower.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@ApiModel(value = "汇总订单详情", description = "所有已审核订单支付后会汇总成为一张统一的订单表，记录本次支付信息，订单地址等信息")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class PayOrderDTO {

    private String guid;

    @ApiModelProperty("支付流水号（暂定）")
    private String orderNo;

    @ApiModelProperty("支付总金额")
    private BigDecimal totalPrice;

    @ApiModelProperty("所享折扣")
    private BigDecimal discount;

    @ApiModelProperty("实际支付金额")
    private BigDecimal actuallyPrice;

    @ApiModelProperty("订单状态，0 支付中， 1支付成功， 2支付失败， 3已退款")
    private Byte status;

    @ApiModelProperty("交易类型，0 订单支付， 1 会员充值")
    private Byte type;

    @ApiModelProperty("错误信息")
    private String errorMsg;

    @ApiModelProperty("是否使用会员卡支付")
    private Boolean useCard;

}
